package com.devilvan.betrice.aiqicha.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.devilvan.betrice.aiqicha.deserialize.ParseHyphenDeserializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Evad.Wu
 * @Description 爱企查-开庭公告信息 值对象
 * @date 2022-09-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "爱企查-开庭公告信息 值对象")
public class AiqichaOpenNoticeVo {
    @Schema(description = "企业系统ID")
    @JSONField(deserialize = false)
    private Long pid;
    @Schema(description = "开庭日期")
    @JSONField(alternateNames = {"hearingDate"}, deserializeUsing = ParseHyphenDeserializer.class)
    private Date hearingDate;
    @Schema(description = "案号")
    @JSONField(alternateNames = {"caseNo"})
    private String caseNo;
    @Schema(description = "案由")
    @JSONField(alternateNames = {"caseReason"})
    private String caseReason;
    @Schema(description = "法院")
    @JSONField(alternateNames = {"court"})
    private String court;
    @Schema(description = "法庭")
    @JSONField(alternateNames = {"tribunal"})
    private String tribunal;
    @Schema(description = "法官")
    @JSONField(alternateNames = {"judge"})
    private String judge;
    @Schema(description = "当事人")
    @JSONField(alternateNames = "relatedCompanies")
    private RelatedCompaniesVo relatedCompaniesVo;
}
